'''
subredd_load.py
This class will test loading subreddits from the file
in a (url, meaning) combo. The meaning will be used
to find related keywords. (ex. /r/ffffuuuuu = angry)
'''

subreddit_file = 'subreddits.txt'

subreddits = []

with open(subreddit_file, 'r+') as f:
  while 1:
    line = f.readline()
    if not line:
      break
    tok = line.split()
    meaning = tok[0]
    
    if len(tok) != 1:
      meaning = tok[1]
      
    subreddits.append((tok[0], meaning))

print subreddits